//package com.ken.teacher.listener;
//
//import com.ken.teacher.server.WebSocketServer;
//import com.ken.common.dto.signInDto;
//import lombok.extern.slf4j.Slf4j;
//import org.springframework.amqp.rabbit.annotation.RabbitListener;
//import org.springframework.stereotype.Component;
//
//import javax.websocket.Session;
//
//@Slf4j
//@Component
//public class myListener {
//    @RabbitListener(queues = "ken.queue")
//    public void listen(signInDto sign){
//        Session session = WebSocketServer.getSession(sign.getSession_id());
//        session.getAsyncRemote().sendText(sign.getStudent_id());
//    }
//}
